package main

import (
	"os"
	"text/template"
)

type Invertory struct {
	Material string
	Count    uint
}

func main() {
	sweaters := Invertory{"wool", 17}
	temp := "{{.Count}} items are made of {{.Material}}"

	tpl, err := template.New("test").Parse(temp)

	if err != nil {
		panic(err)
	}

	err = tpl.Execute(os.Stdout, sweaters)

	if err != nil {
		panic(err)
	}
}
